﻿using OpenAuth.Repository.Core;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace OpenAuth.Repository.Domain
{
    [Table("PLA_PROJECT_ALL")]
    public class PLA_PROJECT_ALL : Entity
    {
        public PLA_PROJECT_ALL() {
            this.FOUND_DATE = DateTime.Now;
            this.LAST_MODIF_DATE = DateTime.Now;
            this.DELETE_TIME = DateTime.Now;
            this.P_COMPDATE = DateTime.Now;
            this.P_STARTDATE = DateTime.Now;

            this.RISK_LEVEL = 0;  this.SEQ_NUM = 0; this.STRGY_PRIORITY_NUM = 0; this.EST_WT = 0; this.LIMIT_DAY = 0; this.PAY_PERCENT = 0; this.PRIORITY_NUM = 0;  this.P_SCALE = 0;
        }
        /// <summary>
        ///项目名称
        /// </summary>
        [Description("项目名称"), Column("PROJECT_NAME"), Required(ErrorMessage = "项目名称不能为空!")]
        public string PROJECT_NAME { get; set; }

        /// <summary>
        ///项目代码
        /// </summary>
        [Description("项目代码"), Column("PROJ_CODE"),Browsable(false)]
        public string PROJ_CODE { get; set; }

        /// <summary>
        ///项目简称
        /// </summary>
        [Description("项目简称"), Column("PROJ_JC")]
        public string PROJ_JC { get; set; }

        /// <summary>
        ///项目代码
        /// </summary>
        [Description("项目代码"), Column("PROJ_SHORT_NAME")]
        public string PROJ_SHORT_NAME { get; set; }

        /// <summary>
        ///结构类型
        /// </summary>
        [Description("结构类型"), Column("KJ_TYPE")]
        public string KJ_TYPE { get; set; }

        /// <summary>
        ///费用科目ID
        /// </summary>
        [Description("费用科目ID"), Column("ACCT_ID"),Browsable(false)]
        public string ACCT_ID { get; set; }
        /// <summary>
        ///工程所在区域
        /// </summary>
        [Description("工程所在区域"), Column("AREA")]
        public string AREA { get; set; }
        /// <summary>
        ///详细地址
        /// </summary>
        [Description("详细地址"), Column("ADRESS")]
        public string ADRESS { get; set; }


        /// <summary>
        ///项目地址
        /// </summary>
        [Description("项目地址"), Column("P_ADDRESS")]
        public string P_ADDRESS { get; set; }

        /// <summary>
        ///项目安全负责人
        /// </summary>
        [Description("项目安全负责人"), Column("P_AQFZR")]
        public string P_AQFZR { get; set; }


        /// <summary>
        ///计划竣工日期
        /// </summary>
        [Description("计划竣工日期"), Column("P_COMPDATE")]
        public DateTime? P_COMPDATE { get; set; }

        /// <summary>
        ///项目财务负责人
        /// </summary>
        [Description("项目财务负责人"), Column("P_CWFZR")]
        public string P_CWFZR { get; set; }

        /// <summary>
        ///项目经理
        /// </summary>
        [Description("项目经理"), Column("P_MANAGER")]
        public string P_MANAGER { get; set; }

        /// <summary>
        ///项目经理联系方式
        /// </summary>
        [Description("项目经理联系方式"), Column("P_MANAGER_TEL")]
        public string P_MANAGER_TEL { get; set; }

        /// <summary>
        ///工程性质
        /// </summary>
        [Description("工程性质"), Column("P_NATURE")]
        public string P_NATURE { get; set; }

        /// <summary>
        ///业务方联系人
        /// </summary>
        [Description("业务方联系人"), Column("P_OWNER_LINK")]
        public string P_OWNER_LINK { get; set; }

        /// <summary>
        ///业主方联系电话
        /// </summary>
        [Description("业主方联系电话"), Column("P_OWNER_TEL")]
        public string P_OWNER_TEL { get; set; }

        /// <summary>
        ///工程规模
        /// </summary>
        [Description("工程规模"), Column("P_SCALE")]
        public decimal? P_SCALE { get; set; }

        /// <summary>
        ///计划开工日期
        /// </summary>
        [Description("计划开工日期"), Column("P_STARTDATE")]
        public DateTime? P_STARTDATE { get; set; }

        /// <summary>
        ///工程类别
        /// </summary>
        [Description("工程类别"), Column("P_TYPE")]
        public string P_TYPE { get; set; }

        /// <summary>
        ///项目总工程师
        /// </summary>
        [Description("项目总工程师"), Column("P_ZGCS")]
        public string P_ZGCS { get; set; }

        /// <summary>
        ///造价师/员
        /// </summary>
        [Description("造价师/员"), Column("P_ZJS")]
        public string P_ZJS { get; set; }

        /// <summary>
        ///项目质量负责人
        /// </summary>
        [Description("项目质量负责人"), Column("P_ZLFZR")]
        public string P_ZLFZR { get; set; }

        /// <summary>
        ///建设单位
        /// </summary>
        [Description("建设单位"), Column("BUILD_UNIT")]
        public string BUILD_UNIT { get; set; }

        /// <summary>
        ///公司代码
        /// </summary>
        [Description("公司代码"), Column("COMP_CODE")]
        public string COMP_CODE { get; set; }

        /// <summary>
        ///数据状态
        /// </summary>
        [Description("数据状态"), Column("DATASTATUS")]
        public string DATASTATUS { get; set; }


        /// <summary>
        ///部门代码
        /// </summary>
        [Description("部门代码"), Column("DEPT_CODE")]
        public string DEPT_CODE { get; set; }

        /// <summary>
        ///企业项目组织结构ID
        /// </summary>
        [Description("企业项目组织结构ID"), Column("EPSID")]
        public string EPSID { get; set; }

        /// <summary>
        ///估算权重
        /// </summary>
        [Description("估算权重"), Column("EST_WT")]
        public int? EST_WT { get; set; }

        /// <summary>
        ///房地产项目性质
        /// </summary>
        [Description("房地产项目性质"), Column("FDCXM_TYPE")]
        public string FDCXM_TYPE { get; set; }

        /// <summary>
        ///创建日期
        /// </summary>
        [Description("创建日期"), Column("FOUND_DATE")]
        public DateTime? FOUND_DATE { get; set; }

        /// <summary>
        ///创建人
        /// </summary>
        [Description("创建人"), Column("FOUND_MAN")]
        public string FOUND_MAN { get; set; }

        /// <summary>
        ///删除时间
        /// </summary>
        [Description("删除时间"), Column("DELETE_TIME")]
        public DateTime? DELETE_TIME { get; set; }

        /// <summary>
        ///删除标记
        /// </summary>
        [Description("删除标记"), Column("DELETE_YN")]
        public string DELETE_YN { get; set; }
        /// <summary>
        ///资金来源
        /// </summary>
        [Description("资金来源"), Column("FUND_SOURCE")]
        public string FUND_SOURCE { get; set; }

        /// <summary>
        ///虚拟项目标识
        /// </summary>
        [Description("虚拟项目标识"), Column("IF_VIRTUAL_PROJECT")]
        public string IF_VIRTUAL_PROJECT { get; set; }


        /// <summary>
        ///最新会计周期ID
        /// </summary>
        [Description("最新会计周期ID"), Column("LAST_FIN_DATES_ID")]
        public string LAST_FIN_DATES_ID { get; set; }

        /// <summary>
        ///修改日期
        /// </summary>
        [Description("修改日期"), Column("LAST_MODIF_DATE")]
        public DateTime? LAST_MODIF_DATE { get; set; }

        /// <summary>
        ///工期（天）
        /// </summary>
        [Description("工期（天）"), Column("LIMIT_DAY")]
        public int? LIMIT_DAY { get; set; }

        /// <summary>
        ///修改人
        /// </summary>
        [Description("修改人"), Column("MODIF_MAN")]
        public string MODIF_MAN { get; set; }

        /// <summary>
        ///组织机构全码
        /// </summary>
        [Description("组织机构全码"), Column("ORG_FULLCODE")]
        public string ORG_FULLCODE { get; set; }

        /// <summary>
        ///组织机构id
        /// </summary>
        [Description("组织机构id"), Column("ORG_ID")]
        public string ORG_ID { get; set; }

        /// <summary>
        ///父项目
        /// </summary>
        [Description("父项目"), Column("PARENT_ID")]
        public string PARENT_ID { get; set; }

        /// <summary>
        ///项目与公司约定比例
        /// </summary>
        [Description("项目与公司约定比例"), Column("PAY_PERCENT")]
        public decimal? PAY_PERCENT { get; set; }

        /// <summary>
        ///日历ID
        /// </summary>
        [Description("日历ID"), Column("PLA_CALENDAR_ID")]
        public string PLA_CALENDAR_ID { get; set; }

        /// <summary>
        ///项目优先级
        /// </summary>
        [Description("项目优先级"), Column("PRIORITY_NUM")]
        public int? PRIORITY_NUM { get; set; }

     
        /// <summary>
        ///备注
        /// </summary>
        [Description("备注"), Column("REMARKS")]
        public string REMARKS { get; set; }

        /// <summary>
        ///责任人ID
        /// </summary>
        [Description("责任人ID"), Column("RESP_ID")]
        public string RESP_ID { get; set; }

        /// <summary>
        ///风险级别
        /// </summary>
        [Description("风险级别"), Column("RISK_LEVEL")]
        public int?  RISK_LEVEL { get; set; }

        /// <summary>
        ///排序号
        /// </summary>
        [Description("排序号"), Column("SEQ_NUM")]
        public int? SEQ_NUM { get; set; }

        /// <summary>
        ///潜在项目ID
        /// </summary>
        [Description("潜在项目ID"), Column("SOURCE_ID")]
        public string SOURCE_ID { get; set; }

        /// <summary>
        ///项目状态
        /// </summary>
        [Description("项目状态"), Column("STATUS_CODE")]
        public string STATUS_CODE { get; set; }

        /// <summary>
        ///战略优先级
        /// </summary>
        [Description("战略优先级"), Column("STRGY_PRIORITY_NUM")]
        public int? STRGY_PRIORITY_NUM { get; set; }

        /// <summary>
        ///监理公司
        /// </summary>
        [Description("监理公司"), Column("SUP_COMP")]
        public string SUP_COMP { get; set; }

        /// <summary>
        ///计量单位
        /// </summary>
        [Description("计量单位"), Column("UNIT")]
        public string UNIT { get; set; }

        /// <summary>
        ///中标单位编码
        /// </summary>
        [Description("中标单位编码"), Column("W_CODE")]
        public string W_CODE { get; set; }

        /// <summary>
        ///中标单位名称
        /// </summary>
        [Description("中标单位名称"), Column("W_NAME")]
        public string W_NAME { get; set; }

        /// <summary>
        ///中标价
        /// </summary>
        [Description("中标价"), Column("W_PRICE")]
        public decimal? W_PRICE { get; set; }


    }
}
